import React, { FC } from 'react';
import { UmiComponentProps } from '@/common/type';
import { Button } from 'antd';

const PageNotFound: FC<UmiComponentProps> = props => {
  const { history } = props;
  return (
    <Button
      type="primary"
      onClick={() => {
        history && history.goBack();
      }}
    >
      go back
    </Button>
  );
};

export default PageNotFound;
